<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>DisplayObject - Go2d</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="icon" href="../assets/favicon.ico">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
                <h1><img src="../assets/css/logo.png" title="Go2d" width="117" height="52"></h1>
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 1.6.7</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
                    <h2 class="off-left">APIs</h2>
                    <div id="api-tabview" class="tabview">
                        <ul class="tabs">
                            <li><a href="#api-classes">Classes</a></li>
                            <li><a href="#api-modules">Modules</a></li>
                        </ul>
                
                        <div id="api-tabview-filter">
                            <input type="search" id="api-filter" placeholder="Type to filter APIs">
                        </div>
                
                        <div id="api-tabview-panel">
                            <ul id="api-classes" class="apis classes">
                                <li><a href="../classes/Class.html">Class</a></li>
                                <li><a href="../classes/Director.html">Director</a></li>
                                <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
                                <li><a href="../classes/Ease.html">Ease</a></li>
                                <li><a href="../classes/Event.html">Event</a></li>
                                <li><a href="../classes/EventEmitter.html">EventEmitter</a></li>
                                <li><a href="../classes/go2d.html">go2d</a></li>
                                <li><a href="../classes/ImageView.html">ImageView</a></li>
                                <li><a href="../classes/Matrix.html">Matrix</a></li>
                                <li><a href="../classes/ObjectPool.html">ObjectPool</a></li>
                                <li><a href="../classes/ResizeEvent.html">ResizeEvent</a></li>
                                <li><a href="../classes/ResourceLoader.html">ResourceLoader</a></li>
                                <li><a href="../classes/ScrollEvent.html">ScrollEvent</a></li>
                                <li><a href="../classes/ScrollView.html">ScrollView</a></li>
                                <li><a href="../classes/Sprite.html">Sprite</a></li>
                                <li><a href="../classes/Stage.html">Stage</a></li>
                                <li><a href="../classes/TextField.html">TextField</a></li>
                                <li><a href="../classes/TouchEvent.html">TouchEvent</a></li>
                                <li><a href="../classes/Tween.html">Tween</a></li>
                                <li><a href="../classes/URLRequest.html">URLRequest</a></li>
                                <li><a href="../classes/Vector.html">Vector</a></li>
                            </ul>
                
                            <ul id="api-modules" class="apis modules">
                                <li><a href="../modules/go2d.html">go2d</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
                    Show:
                    <label for="api-show-inherited">
                        <input type="checkbox" id="api-show-inherited" checked>
                        Inherited
                    </label>
            
                    <label for="api-show-protected">
                        <input type="checkbox" id="api-show-protected">
                        Protected
                    </label>
            
                    <label for="api-show-private">
                        <input type="checkbox" id="api-show-private">
                        Private
                    </label>
                    <label for="api-show-deprecated">
                        <input type="checkbox" id="api-show-deprecated">
                        Deprecated
                    </label>
            
                </div>
            
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
<h1>DisplayObject Class</h1>
<div class="box meta">

        <div class="extends">
            Extends <a href="../classes/EventEmitter.html" class="crosslink">EventEmitter</a>
        </div>

        <div class="foundat">
            Defined in: <a href="../files/src_display_DisplayObject.js.html#l1"><code>src\display\DisplayObject.js:1</code></a>
        </div>

            Module: <a href="../modules/go2d.html">go2d</a>

</div>


<div class="box intro">
    <p>显示对象基类，实现了显示对象的基本渲染和事件逻辑，显示对象元素类和舞台类都基于此类。</p>

</div>

    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_DisplayObject" class="method item">
            <h3 class="name"><code>DisplayObject</code></h3>
        
                <div class="args">
                    <span class="paren">(</span><ul class="args-list inline commas">
                        <li class="arg">
                                <code>canvas</code>
                        </li>
                    </ul><span class="paren">)</span>
                </div>
        
        
        
        
        
        
        
        
            <div class="meta">
                        <p>
                        Defined in
                <a href="../files/src_display_DisplayObject.js.html#l1"><code>src\display\DisplayObject.js:1</code></a>
                </p>
        
        
        
            </div>
        
            <div class="description">
                
            </div>
        
                <div class="params">
                    <h4>Parameters:</h4>
        
                    <ul class="params-list">
                        <li class="param">
                                <code class="param-name">canvas</code>
                                <span class="type">Object</span>
        
        
                            <div class="param-description">
                                <p>用于渲染的画布对象</p>
        
                            </div>
        
                        </li>
                    </ul>
                </div>
        
        
        
        </div>
    </div>

<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
            <li class="api-class-tab events"><a href="#events">Events</a></li>
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods extends">
                            <li class="index-item method protected">
                                <a href="#method__drawChild">_drawChild</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method__tick">_tick</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_addChild">addChild</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_addChildAt">addChildAt</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_addedToStage">addedToStage</a>

                            </li>
                            <li class="index-item method inherited">
                                <a href="#method_dispose">dispose</a>

                            </li>
                            <li class="index-item method inherited inherited">
                                <a href="#method_emit">emit</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getAllChildren">getAllChildren</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getAnchor">getAnchor</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getChildAt">getChildAt</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getChildByName">getChildByName</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getChildIndex">getChildIndex</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getChildrenByTag">getChildrenByTag</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_getMask">getMask</a>

                            </li>
                            <li class="index-item method inherited">
                                <a href="#method_off">off</a>

                            </li>
                            <li class="index-item method inherited inherited">
                                <a href="#method_on">on</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_pause">pause</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_play">play</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeAllChildren">removeAllChildren</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeChild">removeChild</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeChildAt">removeChildAt</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeChildrenByName">removeChildrenByName</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeChildrenByTag">removeChildrenByTag</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removedFromStage">removedFromStage</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_removeMask">removeMask</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_render">render</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_resize">resize</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_setMask">setMask</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_sortChildren">sortChildren</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_swapChildren">swapChildren</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_swapChildrenAt">swapChildrenAt</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_touch">touch</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_update">update</a>

                            </li>
                            <li class="index-item method">
                                <a href="#method_update">update</a>

                            </li>
                    </ul>
                </div>

                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties extends">
                            <li class="index-item property private inherited">
                                <a href="#property___events">__events</a>

                            </li>
                            <li class="index-item property protected">
                                <a href="#property__children">_children</a>

                            </li>
                            <li class="index-item property protected">
                                <a href="#property__dirty">_dirty</a>

                            </li>
                            <li class="index-item property protected">
                                <a href="#property__touches">_touches</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_anchorOffsetX">anchorOffsetX</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_anchorOffsetY">anchorOffsetY</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_anchorX">anchorX</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_anchorY">anchorY</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_background">background</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_canvas">canvas</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_context">context</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_height">height</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_mask">mask</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_name">name</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_opacity">opacity</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_paused">paused</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_stage">stage</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_tag">tag</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_touchable">touchable</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_touchChildren">touchChildren</a>

                            </li>
                            <li class="index-item property">
                                <a href="#property_width">width</a>

                            </li>
                    </ul>
                </div>


                <div class="index-section events">
                    <h3>Events</h3>

                    <ul class="index-list events extends">
                            <li class="index-item event">
                                <a href="#event_addedtostage">addedtostage</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_paint">paint</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_removedfromstage">removedfromstage</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_render">render</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_resize">resize</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_step">step</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_touchend">touchend</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_touchmove">touchmove</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_touchstart">touchstart</a>

                            </li>
                            <li class="index-item event">
                                <a href="#event_touchtap">touchtap</a>

                            </li>
                    </ul>
                </div>
        </div>

            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

<div id="method__drawChild" class="method item protected">
    <h3 class="name"><code>_drawChild</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child</code>
                </li>
                <li class="arg">
                        <code class="optional">[blendMode]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>


        <span class="flag protected">protected</span>





    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l218"><code>src\display\DisplayObject.js:218</code></a>
        </p>



    </div>

    <div class="description">
        <p>绘制子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child</code>
                        <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>


                    <div class="param-description">
                        <p>要绘制的对象</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name optional">[blendMode]</code>
                        <span class="type">String</span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>


                    <div class="param-description">
                        <p>混合模式</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method__tick" class="method item">
    <h3 class="name"><code>_tick</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l202"><code>src\display\DisplayObject.js:202</code></a>
        </p>



    </div>

    <div class="description">
        <p>进入下一帧，该方法应只由引擎本身调用</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_addChild" class="method item">
    <h3 class="name"><code>addChild</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l493"><code>src\display\DisplayObject.js:493</code></a>
        </p>



    </div>

    <div class="description">
        <p>添加子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>要添加的子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_addChildAt" class="method item">
    <h3 class="name"><code>addChildAt</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child</code>
                </li>
                <li class="arg">
                        <code>index</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l503"><code>src\display\DisplayObject.js:503</code></a>
        </p>



    </div>

    <div class="description">
        <p>在指定深度添加子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>要添加的子对象</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">index</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>深度，数值越小层级越低</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_addedToStage" class="method item">
    <h3 class="name"><code>addedToStage</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>stage</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l385"><code>src\display\DisplayObject.js:385</code></a>
        </p>



    </div>

    <div class="description">
        <p>触发添加到舞台事件，不建议外部调用</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">stage</code>
                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>


                    <div class="param-description">
                        <p>舞台对象</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_dispose" class="method item">
    <h3 class="name"><code>dispose</code></h3>

        <span class="paren">()</span>








    <div class="meta">
            <p>Inherited from
            <a href="../classes/EventEmitter.html#method_dispose">
                EventEmitter
            </a>
            but overwritten in
        <a href="../files/src_display_DisplayObject.js.html#l785"><code>src\display\DisplayObject.js:785</code></a>
        </p>



    </div>

    <div class="description">
        <p>释放对象内存</p>

    </div>




</div>
<div id="method_emit" class="method item inherited">
    <h3 class="name"><code>emit</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>name</code>
                </li>
                <li class="arg">
                        <code class="optional">[event]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
            <p>Inherited from
            <a href="../classes/EventEmitter.html#method_emit">
                EventEmitter
            </a>
            but overwritten in
        <a href="../files/src_event_EventEmitter.js.html#l75"><code>src\event\EventEmitter.js:75</code></a>
        </p>



    </div>

    <div class="description">
        <p>通过事件对象派发事件</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>事件名称</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name optional">[event]</code>
                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>


                    <div class="param-description">
                        <p>事件对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_getAllChildren" class="method item">
    <h3 class="name"><code>getAllChildren</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Array</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l623"><code>src\display\DisplayObject.js:623</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取所有子对象</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Array</span>:
                    <p>所有子对象数组</p>

            </div>
        </div>


</div>
<div id="method_getAnchor" class="method item">
    <h3 class="name"><code>getAnchor</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">Object</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l453"><code>src\display\DisplayObject.js:453</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取锚点偏移</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Object</span>:
                    <p>锚点锚点偏移</p>

            </div>
        </div>


</div>
<div id="method_getChildAt" class="method item">
    <h3 class="name"><code>getChildAt</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>index</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l561"><code>src\display\DisplayObject.js:561</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取指定深度的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">index</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>子对象深度</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
                    <p>对应的子对象</p>

            </div>
        </div>


</div>
<div id="method_getChildByName" class="method item">
    <h3 class="name"><code>getChildByName</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>name</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l530"><code>src\display\DisplayObject.js:530</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取指定名字的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>子对象名字</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
                    <p>对应的子对象</p>

            </div>
        </div>


</div>
<div id="method_getChildIndex" class="method item">
    <h3 class="name"><code>getChildIndex</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Number</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l570"><code>src\display\DisplayObject.js:570</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取指定子对象的深度</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>对应的子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Number</span>:
                    <p>子对象深度</p>

            </div>
        </div>


</div>
<div id="method_getChildrenByTag" class="method item">
    <h3 class="name"><code>getChildrenByTag</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>tag</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Array</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l546"><code>src\display\DisplayObject.js:546</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取指定标签的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">tag</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>子对象标签</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Array</span>:
                    <p>对应的子对象数组</p>

            </div>
        </div>


</div>
<div id="method_getMask" class="method item">
    <h3 class="name"><code>getMask</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l744"><code>src\display\DisplayObject.js:744</code></a>
        </p>



    </div>

    <div class="description">
        <p>获取遮罩对象</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>:
            </div>
        </div>


</div>
<div id="method_off" class="method item inherited">
    <h3 class="name"><code>off</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>name</code>
                </li>
                <li class="arg">
                        <code class="optional">[callback]</code>
                </li>
                <li class="arg">
                        <code class="optional">[thisArg]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>Inherited from
                <a href="../classes/EventEmitter.html#method_off">EventEmitter</a>:
        <a href="../files/src_event_EventEmitter.js.html#l52"><code>src\event\EventEmitter.js:52</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除事件侦听器</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>事件名称</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name optional">[callback]</code>
                        <span class="type">Function</span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>


                    <div class="param-description">
                        <p>回调函数，当该参数为空时将移除该事件的所有回调</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name optional">[thisArg]</code>
                        <span class="type">Object</span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>


                    <div class="param-description">
                        <p>回调执行时 this 关键字所引用的对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_on" class="method item inherited">
    <h3 class="name"><code>on</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>name</code>
                </li>
                <li class="arg">
                        <code>callback</code>
                </li>
                <li class="arg">
                        <code class="optional">[thisArg]</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
            <p>Inherited from
            <a href="../classes/EventEmitter.html#method_on">
                EventEmitter
            </a>
            but overwritten in
        <a href="../files/src_event_EventEmitter.js.html#l21"><code>src\event\EventEmitter.js:21</code></a>
        </p>



    </div>

    <div class="description">
        <p>添加事件侦听器</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>事件名称</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">callback</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>回调函数</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name optional">[thisArg]</code>
                        <span class="type">Object</span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>


                    <div class="param-description">
                        <p>回调执行时 this 关键字所引用的对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_pause" class="method item">
    <h3 class="name"><code>pause</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l776"><code>src\display\DisplayObject.js:776</code></a>
        </p>



    </div>

    <div class="description">
        <p>暂停该对象的帧播放</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_play" class="method item">
    <h3 class="name"><code>play</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l767"><code>src\display\DisplayObject.js:767</code></a>
        </p>



    </div>

    <div class="description">
        <p>开始该对象的帧播放</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removeAllChildren" class="method item">
    <h3 class="name"><code>removeAllChildren</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l699"><code>src\display\DisplayObject.js:699</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除所有子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removeChild" class="method item">
    <h3 class="name"><code>removeChild</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child</code>
                </li>
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l631"><code>src\display\DisplayObject.js:631</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除指定的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>对应的子对象</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removeChildAt" class="method item">
    <h3 class="name"><code>removeChildAt</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>index</code>
                </li>
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l642"><code>src\display\DisplayObject.js:642</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除指定深度的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">index</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>子对象的深度</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removeChildrenByName" class="method item">
    <h3 class="name"><code>removeChildrenByName</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>name</code>
                </li>
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l666"><code>src\display\DisplayObject.js:666</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除指定名字的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">name</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>子对象的名字</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removeChildrenByTag" class="method item">
    <h3 class="name"><code>removeChildrenByTag</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>tag</code>
                </li>
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l683"><code>src\display\DisplayObject.js:683</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除指定标签的子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">tag</code>
                        <span class="type">String</span>


                    <div class="param-description">
                        <p>子对象的标签</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁子对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_removedFromStage" class="method item">
    <h3 class="name"><code>removedFromStage</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>stage</code>
                </li>
            </ul><span class="paren">)</span>
        </div>








    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l402"><code>src\display\DisplayObject.js:402</code></a>
        </p>



    </div>

    <div class="description">
        <p>触发移除出舞台事件，不建议外部调用</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">stage</code>
                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>


                    <div class="param-description">
                        <p>舞台对象</p>

                    </div>

                </li>
            </ul>
        </div>



</div>
<div id="method_removeMask" class="method item">
    <h3 class="name"><code>removeMask</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>cleanup</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l752"><code>src\display\DisplayObject.js:752</code></a>
        </p>



    </div>

    <div class="description">
        <p>移除遮罩对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">cleanup</code>
                        <span class="type">Boolean</span>


                    <div class="param-description">
                        <p>是否销毁遮罩对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_render" class="method item">
    <h3 class="name"><code>render</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l244"><code>src\display\DisplayObject.js:244</code></a>
        </p>



    </div>

    <div class="description">
        <p>渲染该对象</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_resize" class="method item">
    <h3 class="name"><code>resize</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>width</code>
                </li>
                <li class="arg">
                        <code>height</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l419"><code>src\display\DisplayObject.js:419</code></a>
        </p>



    </div>

    <div class="description">
        <p>设置对象大小</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">width</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>宽度</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">height</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>高度</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_setMask" class="method item">
    <h3 class="name"><code>setMask</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>mask</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l719"><code>src\display\DisplayObject.js:719</code></a>
        </p>



    </div>

    <div class="description">
        <p>设置遮罩对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">mask</code>
                        <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>


                    <div class="param-description">
                        <p>遮罩对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_sortChildren" class="method item">
    <h3 class="name"><code>sortChildren</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>compare</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l613"><code>src\display\DisplayObject.js:613</code></a>
        </p>



    </div>

    <div class="description">
        <p>排列子对象</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">compare</code>
                        <span class="type">Function</span>


                    <div class="param-description">
                        <p>用于比较的函数</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_swapChildren" class="method item">
    <h3 class="name"><code>swapChildren</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>child1</code>
                </li>
                <li class="arg">
                        <code>child2</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l579"><code>src\display\DisplayObject.js:579</code></a>
        </p>



    </div>

    <div class="description">
        <p>交换两个子对象的深度</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">child1</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>要交换的子对象一</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">child2</code>
                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>


                    <div class="param-description">
                        <p>要交换的子对象二</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_swapChildrenAt" class="method item">
    <h3 class="name"><code>swapChildrenAt</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>index1</code>
                </li>
                <li class="arg">
                        <code>index2</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l594"><code>src\display\DisplayObject.js:594</code></a>
        </p>



    </div>

    <div class="description">
        <p>交换两个子对象的深度</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">index1</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>要交换的子对象深度一</p>

                    </div>

                </li>
                <li class="param">
                        <code class="param-name">index2</code>
                        <span class="type">Number</span>


                    <div class="param-description">
                        <p>要交换的子对象深度二</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_touch" class="method item">
    <h3 class="name"><code>touch</code></h3>

        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
                <li class="arg">
                        <code>event</code>
                </li>
            </ul><span class="paren">)</span>
        </div>

        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l290"><code>src\display\DisplayObject.js:290</code></a>
        </p>



    </div>

    <div class="description">
        <p>触发触摸事件，不建议外部调用</p>

    </div>

        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
                <li class="param">
                        <code class="param-name">event</code>
                        <span class="type"><a href="../classes/TouchEvent.html" class="crosslink">TouchEvent</a></span>


                    <div class="param-description">
                        <p>触摸事件对象</p>

                    </div>

                </li>
            </ul>
        </div>

        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">Boolean</span>:
                    <p>是否成功触发事件</p>

            </div>
        </div>


</div>
<div id="method_update" class="method item">
    <h3 class="name"><code>update</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l474"><code>src\display\DisplayObject.js:474</code></a>
        </p>



    </div>

    <div class="description">
        <p>更新父对象渲染状态，某些情况下，对象属性的改变并不影响本身的渲染，而只影响父元素的渲染，此时只需重新渲染父对象即可</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
<div id="method_update" class="method item">
    <h3 class="name"><code>update</code></h3>

        <span class="paren">()</span>

        <span class="returns-inline">
            <span class="type">This</span>
        </span>







    <div class="meta">
                <p>
                Defined in
        <a href="../files/src_display_DisplayObject.js.html#l464"><code>src\display\DisplayObject.js:464</code></a>
        </p>



    </div>

    <div class="description">
        <p>更新对象渲染状态，当对象的属性改变将影响其渲染结果时调用</p>

    </div>


        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                        <span class="type">This</span>:
            </div>
        </div>


</div>
            </div>

            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                    <div id="property___events" class="property item private inherited">
                        <h3 class="name"><code>__events</code></h3>
                        <span class="type">Object</span>
                    
                    
                            <span class="flag private">private</span>
                    
                    
                    
                        <div class="meta">
                                    <p>Inherited from
                                    <a href="../classes/EventEmitter.html#property___events">EventEmitter</a>:
                            <a href="../files/src_event_EventEmitter.js.html#l13"><code>src\event\EventEmitter.js:13</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>侦听器哈希表</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property__children" class="property item protected">
                        <h3 class="name"><code>_children</code></h3>
                        <span class="type">Array</span>
                    
                    
                            <span class="flag protected">protected</span>
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l93"><code>src\display\DisplayObject.js:93</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>子对象数组</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property__dirty" class="property item protected">
                        <h3 class="name"><code>_dirty</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                            <span class="flag protected">protected</span>
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l76"><code>src\display\DisplayObject.js:76</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>是否需要重新渲染</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> true</p>
                    
                    
                    </div>
                    <div id="property__touches" class="property item protected">
                        <h3 class="name"><code>_touches</code></h3>
                        <span class="type">Array</span>
                    
                    
                            <span class="flag protected">protected</span>
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l85"><code>src\display\DisplayObject.js:85</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸标识数组</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_anchorOffsetX" class="property item">
                        <h3 class="name"><code>anchorOffsetX</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l126"><code>src\display\DisplayObject.js:126</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>水平方向锚点偏移像素</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> 0</p>
                    
                    
                    </div>
                    <div id="property_anchorOffsetY" class="property item">
                        <h3 class="name"><code>anchorOffsetY</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l134"><code>src\display\DisplayObject.js:134</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>垂直方向锚点偏移像素</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> 0</p>
                    
                    
                    </div>
                    <div id="property_anchorX" class="property item">
                        <h3 class="name"><code>anchorX</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l110"><code>src\display\DisplayObject.js:110</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>水平方向锚点偏移比例</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> 0</p>
                    
                    
                    </div>
                    <div id="property_anchorY" class="property item">
                        <h3 class="name"><code>anchorY</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l118"><code>src\display\DisplayObject.js:118</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>垂直方向锚点偏移比例</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> 0</p>
                    
                    
                    </div>
                    <div id="property_background" class="property item">
                        <h3 class="name"><code>background</code></h3>
                        <span class="type">Null | String | Object</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l150"><code>src\display\DisplayObject.js:150</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>背景颜色或样式</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> null</p>
                    
                    
                    </div>
                    <div id="property_canvas" class="property item">
                        <h3 class="name"><code>canvas</code></h3>
                        <span class="type">Object</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l14"><code>src\display\DisplayObject.js:14</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>用于渲染的画布对象</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_context" class="property item">
                        <h3 class="name"><code>context</code></h3>
                        <span class="type">Object</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l22"><code>src\display\DisplayObject.js:22</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>画布的上下文对象</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_height" class="property item">
                        <h3 class="name"><code>height</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l186"><code>src\display\DisplayObject.js:186</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>高度</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_mask" class="property item">
                        <h3 class="name"><code>mask</code></h3>
                        <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l101"><code>src\display\DisplayObject.js:101</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>遮罩层</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_name" class="property item">
                        <h3 class="name"><code>name</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l30"><code>src\display\DisplayObject.js:30</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>用于标识该对象的名字，该属性在兄弟对象中应该唯一</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_opacity" class="property item">
                        <h3 class="name"><code>opacity</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l142"><code>src\display\DisplayObject.js:142</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>不透明度</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> 1</p>
                    
                    
                    </div>
                    <div id="property_paused" class="property item">
                        <h3 class="name"><code>paused</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l52"><code>src\display\DisplayObject.js:52</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>是否已暂停</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> false</p>
                    
                    
                    </div>
                    <div id="property_stage" class="property item">
                        <h3 class="name"><code>stage</code></h3>
                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l44"><code>src\display\DisplayObject.js:44</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>该对象所属的舞台对象</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_tag" class="property item">
                        <h3 class="name"><code>tag</code></h3>
                        <span class="type">String</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l37"><code>src\display\DisplayObject.js:37</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>用于标识该对象的标签</p>
                    
                        </div>
                    
                    
                    
                    </div>
                    <div id="property_touchable" class="property item">
                        <h3 class="name"><code>touchable</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l60"><code>src\display\DisplayObject.js:60</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>是否可点击</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> true</p>
                    
                    
                    </div>
                    <div id="property_touchChildren" class="property item">
                        <h3 class="name"><code>touchChildren</code></h3>
                        <span class="type">Boolean</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l68"><code>src\display\DisplayObject.js:68</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>子节点是否可点击</p>
                    
                        </div>
                    
                            <p><strong>Default:</strong> true</p>
                    
                    
                    </div>
                    <div id="property_width" class="property item">
                        <h3 class="name"><code>width</code></h3>
                        <span class="type">Number</span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l172"><code>src\display\DisplayObject.js:172</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>宽度</p>
                    
                        </div>
                    
                    
                    
                    </div>
            </div>


            <div id="events" class="api-class-tabpanel">
                <h2 class="off-left">Events</h2>

                    <div id="event_addedtostage" class="events item">
                        <h3 class="name"><code>addedtostage</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l391"><code>src\display\DisplayObject.js:391</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>添加到舞台事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">stage</code>
                                            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>舞台对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_paint" class="events item">
                        <h3 class="name"><code>paint</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l281"><code>src\display\DisplayObject.js:281</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>绘制完毕事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">context</code>
                                            <span class="type">Object</span>
                    
                    
                                        <div class="param-description">
                                            <p>绘制上下文对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_removedfromstage" class="events item">
                        <h3 class="name"><code>removedfromstage</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l408"><code>src\display\DisplayObject.js:408</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>移除出舞台事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">stage</code>
                                            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>舞台对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_render" class="events item">
                        <h3 class="name"><code>render</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l264"><code>src\display\DisplayObject.js:264</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>开始渲染事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_resize" class="events item">
                        <h3 class="name"><code>resize</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l440"><code>src\display\DisplayObject.js:440</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>宽高变化事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/ResizeEvent.html" class="crosslink">ResizeEvent</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>宽高变化事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_step" class="events item">
                        <h3 class="name"><code>step</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l209"><code>src\display\DisplayObject.js:209</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>步进（进入下一帧）事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">deltaTime</code>
                                            <span class="type">Number</span>
                    
                    
                                        <div class="param-description">
                                            <p>两帧时间差</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_touchend" class="events item">
                        <h3 class="name"><code>touchend</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l332"><code>src\display\DisplayObject.js:332</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸结束事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/TouchEvent.html" class="crosslink">TouchEvent</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>触摸事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_touchmove" class="events item">
                        <h3 class="name"><code>touchmove</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l322"><code>src\display\DisplayObject.js:322</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸移动事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/TouchEvent.html" class="crosslink">TouchEvent</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>触摸事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_touchstart" class="events item">
                        <h3 class="name"><code>touchstart</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l311"><code>src\display\DisplayObject.js:311</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸开始事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/TouchEvent.html" class="crosslink">TouchEvent</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>触摸事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
                    <div id="event_touchtap" class="events item">
                        <h3 class="name"><code>touchtap</code></h3>
                        <span class="type"></span>
                    
                    
                    
                    
                    
                        <div class="meta">
                                    <p>
                                    Defined in
                            <a href="../files/src_display_DisplayObject.js.html#l343"><code>src\display\DisplayObject.js:343</code></a>
                            </p>
                    
                    
                        </div>
                    
                        <div class="description">
                            <p>触摸点击事件</p>
                    
                        </div>
                    
                            <div class="params">
                                <h4>Event Payload:</h4>
                    
                                <ul class="params-list">
                                    <li class="param">
                                            <code class="param-name">event</code>
                                            <span class="type"><a href="../classes/TouchEvent.html" class="crosslink">TouchEvent</a></span>
                    
                    
                                        <div class="param-description">
                                            <p>触摸事件对象</p>
                    
                                        </div>
                    
                                    </li>
                                </ul>
                            </div>
                    
                    
                    </div>
            </div>
    </div>
</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
